package com.liuweiheng.cloud.future;

public class Client {
    public Data request(String queryStr) {
        final FutureData futureData = new FutureData();
        new Thread() {
            @Override
            public void run() {
                RealData realData = new RealData(queryStr);
                futureData.setResult(realData);
            }
        }.start();

        return futureData;
    }
}
